Improve placeholder text / form UX in Browse By "Starts with" form control#5498
Conversation
65d265b to
2fb21fe
Compare
EikLoe
left a comment
There was a problem hiding this comment.
Hi @kshepherd ,
I tested it and it works great! Thanks 👍🏾 The code looks good to me!
|
We might consider backporting this, as it appears in demo.dspace.org, too. |
|
Good point! Adding labeling for all automatic backports, in case it works out for previous versions. |
tdonohue
left a comment
There was a problem hiding this comment.
👍 Thanks @kshepherd ! Looks good to me too.
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-7_x
git worktree add -d .worktree/backport-5498-to-dspace-7_x origin/dspace-7_x
cd .worktree/backport-5498-to-dspace-7_x
git switch --create backport-5498-to-dspace-7_x
git cherry-pick -x 420b9e06b6ab5b7893a18f07b959a1d7d0be7890 2fb21fe0be52f3204bdb057e665ed55cd3a860c0 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-8_x
git worktree add -d .worktree/backport-5498-to-dspace-8_x origin/dspace-8_x
cd .worktree/backport-5498-to-dspace-8_x
git switch --create backport-5498-to-dspace-8_x
git cherry-pick -x 420b9e06b6ab5b7893a18f07b959a1d7d0be7890 2fb21fe0be52f3204bdb057e665ed55cd3a860c0 |
|
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin dspace-9_x
git worktree add -d .worktree/backport-5498-to-dspace-9_x origin/dspace-9_x
cd .worktree/backport-5498-to-dspace-9_x
git switch --create backport-5498-to-dspace-9_x
git cherry-pick -x 420b9e06b6ab5b7893a18f07b959a1d7d0be7890 2fb21fe0be52f3204bdb057e665ed55cd3a860c0 |
|
@kshepherd : This failed automated backports (I suspect it's because of all the changes to translation files...as those are often difficult to backport). Therefore, if you or anyone else wants to see this in 9.x/8.x/7.x, then we'd need someone to create manual backport PRs. |
References
Description
The placeholder text in the browse-by input form was misleading, with a value of "Search the repository".
This small change shifts the hint text into the form placeholder, instead of being displayed as a small non-obvious line of text below the input form control.
The hint text is already translated across many languages, so it is not text I had to come up with myself and request help from translators.
I think this is improved UX. Feedback welcome.
Instructions for Reviewers
Simply compare the form display when you visit "Browse by Author", with and without this change applied.
List of changes in this PR:
browse.search-form.placeholderin the starts-with Angular component, withbrowse.startsWith.type_textbrowse.search-form.placeholderkeyChecklist
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lint